<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>lib/widget/menu.h</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.5.7' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<!-- beginning of fixed guide -->
<div id='guide'><ul>
<li><a href='#L65'><img class='icon' src='../icons/first.png' alt='[^]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/last.png' alt='[v]' /></a></li>
<li><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a></li>
<li><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a></li>
<li><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a></li>
<li class='standout'><span><a href='../files/lib.html'>lib</a>/<a href='../files/lib--widget.html'>widget</a>/menu.h</span></li>
</ul></div>
<!-- end of fixed guide -->
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/lib.html'>lib</a>/<a href='../files/lib--widget.html'>widget</a>/menu.h</h2>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><a href='#L65'><img class='icon' src='../icons/first.png' alt='[first]' /></a><img class='icon' src='../icons/n_last.png' alt='[last]' /><img class='icon' src='../icons/n_top.png' alt='[top]' /><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+1 lib/widget/menu.h'  /> */</em>
<hr />
<h2 class='header'><a href='lib--widget.h.html#L33' title='Included from 33 in lib/widget.h.'>INCLUDED FROM</a></h2>
<hr />
<h2 class='header'>DEFINITIONS</h2>
This source file includes following definitions.
<ol>
<li><a href='#L65' title='Defined at 65.'>menubar_set_visible</a></li>
</ol>
<hr />
<pre>
<a id='L1' name='L1'></a>   1 <em class='comment'>/*</em>
<a id='L2' name='L2'></a>   2 <em class='comment'>   Header file for pulldown menu engine for Midnignt Commander</em>
<a id='L3' name='L3'></a>   3 <em class='comment'> */</em>
<a id='L4' name='L4'></a>   4 
<a id='L5' name='L5'></a>   5 <em class='comment'>/** \file menu.h</em>
<a id='L6' name='L6'></a>   6 <em class='comment'> *  \brief Header: pulldown menu code</em>
<a id='L7' name='L7'></a>   7 <em class='comment'> */</em>
<a id='L8' name='L8'></a>   8 
<a id='L9' name='L9'></a>   9 <em class='sharp'>#ifndef</em> <a href='../S/lib--widget--menu.h.html#L10' title='Defined at 10 in lib/widget/menu.h.'>MC__WIDGET_MENU_H</a>
<a id='L10' name='L10'></a>  10 <em class='sharp'>#define</em> <a href='../S/lib--widget--menu.h.html#L9' title='Referred from 9 in lib/widget/menu.h.'>MC__WIDGET_MENU_H</a>
<a id='L11' name='L11'></a>  11 
<a id='L12' name='L12'></a>  12 <em class='comment'>/*** typedefs(not structures) and defined constants **********************************************/</em>
<a id='L13' name='L13'></a>  13 
<a id='L14' name='L14'></a>  14 <em class='sharp'>#define</em> <a href='../R/MENUBAR.html' title='Multiple referred from 3 places.'>MENUBAR</a>(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) ((<a href='../D/WMenuBar.html' title='Multiple defined in 2 places.'>WMenuBar</a> *)(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>))
<a id='L15' name='L15'></a>  15 
<a id='L16' name='L16'></a>  16 <em class='sharp'>#define</em> <a href='../R/menu_separator_create.html' title='Multiple referred from 30 places.'>menu_separator_create</a>() <a href='../Y/NULL.html' title='Multiple used in 5646 places.'>NULL</a>
<a id='L17' name='L17'></a>  17 
<a id='L18' name='L18'></a>  18 <em class='comment'>/*** enums ***************************************************************************************/</em>
<a id='L19' name='L19'></a>  19 
<a id='L20' name='L20'></a>  20 <em class='comment'>/*** structures declarations (and typedefs of structures)*****************************************/</em>
<a id='L21' name='L21'></a>  21 
<a id='L22' name='L22'></a>  22 <strong class='reserved'>struct</strong> <a href='../D/menu_entry_t.html' title='Multiple defined in 2 places.'>menu_entry_t</a>;
<a id='L23' name='L23'></a>  23 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <a href='../R/menu_entry_t.html' title='Multiple referred from 18 places.'>menu_entry_t</a> <a href='../D/menu_entry_t.html' title='Multiple defined in 2 places.'>menu_entry_t</a>;
<a id='L24' name='L24'></a>  24 
<a id='L25' name='L25'></a>  25 <strong class='reserved'>struct</strong> <a href='../D/menu_t.html' title='Multiple defined in 2 places.'>menu_t</a>;
<a id='L26' name='L26'></a>  26 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <a href='../R/menu_t.html' title='Multiple referred from 29 places.'>menu_t</a> <a href='../D/menu_t.html' title='Multiple defined in 2 places.'>menu_t</a>;
<a id='L27' name='L27'></a>  27 
<a id='L28' name='L28'></a>  28 <em class='comment'>/* The button bar menu */</em>
<a id='L29' name='L29'></a>  29 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <a href='../R/WMenuBar.html' title='Multiple referred from 48 places.'>WMenuBar</a>
<a id='L30' name='L30'></a>  30 <em class='brace'>{</em>
<a id='L31' name='L31'></a>  31     <a href='../D/Widget.html' title='Multiple defined in 2 places.'>Widget</a> <a href='../Y/widget.html' title='Multiple used in 197 places.'>widget</a>;
<a id='L32' name='L32'></a>  32 
<a id='L33' name='L33'></a>  33     <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/is_visible.html' title='Multiple used in 4 places.'>is_visible</a>;        <em class='comment'>/* If the menubar is visible */</em>
<a id='L34' name='L34'></a>  34     <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/is_dropped.html' title='Multiple used in 18 places.'>is_dropped</a>;        <em class='comment'>/* If the menubar has dropped */</em>
<a id='L35' name='L35'></a>  35     <a href='../Y/GList.html' title='Multiple used in 176 places.'>GList</a> *<a href='../Y/menu.html' title='Multiple used in 165 places.'>menu</a>;                <em class='comment'>/* The actual menus */</em>
<a id='L36' name='L36'></a>  36     <a href='../Y/guint.html' title='Multiple used in 29 places.'>guint</a> <a href='../Y/selected.html' title='Multiple used in 195 places.'>selected</a>;             <em class='comment'>/* Selected menu on the top bar */</em>
<a id='L37' name='L37'></a>  37     <strong class='reserved'>unsigned</strong> <strong class='reserved'>long</strong> <a href='../Y/previous_widget.html' title='Multiple used in 4 places.'>previous_widget</a>;      <em class='comment'>/* Selected widget ID before activating menu */</em>
<a id='L38' name='L38'></a>  38 <em class='brace'>}</em> <a href='../R/WMenuBar.html' title='Multiple referred from 48 places.'>WMenuBar</a>;
<a id='L39' name='L39'></a>  39 
<a id='L40' name='L40'></a>  40 <em class='comment'>/*** global variables defined in .c file *********************************************************/</em>
<a id='L41' name='L41'></a>  41 
<a id='L42' name='L42'></a>  42 <strong class='reserved'>extern</strong> <strong class='reserved'>const</strong> <a href='../D/global_keymap_t.html' title='Multiple defined in 2 places.'>global_keymap_t</a> *<a href='../Y/menu_map.html' title='Multiple used in 3 places.'>menu_map</a>;
<a id='L43' name='L43'></a>  43 
<a id='L44' name='L44'></a>  44 <em class='comment'>/*** declarations of public functions ************************************************************/</em>
<a id='L45' name='L45'></a>  45 
<a id='L46' name='L46'></a>  46 <a href='../D/menu_entry_t.html' title='Multiple defined in 2 places.'>menu_entry_t</a> *<a href='../S/lib--widget--menu.c.html#L876' title='Defined at 876 in lib/widget/menu.c.'>menu_entry_create</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/name.html' title='Multiple used in 736 places.'>name</a>, <strong class='reserved'>long</strong> <a href='../Y/command.html' title='Multiple used in 270 places.'>command</a>);
<a id='L47' name='L47'></a>  47 <strong class='reserved'>void</strong> <a href='../S/lib--widget--menu.c.html#L892' title='Defined at 892 in lib/widget/menu.c.'>menu_entry_free</a> (<a href='../D/menu_entry_t.html' title='Multiple defined in 2 places.'>menu_entry_t</a> * <a href='../Y/me.html' title='Multiple used in 614 places.'>me</a>);
<a id='L48' name='L48'></a>  48 
<a id='L49' name='L49'></a>  49 <a href='../D/menu_t.html' title='Multiple defined in 2 places.'>menu_t</a> *<a href='../S/lib--widget--menu.c.html#L905' title='Defined at 905 in lib/widget/menu.c.'>create_menu</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/name.html' title='Multiple used in 736 places.'>name</a>, <a href='../Y/GList.html' title='Multiple used in 176 places.'>GList</a> * <a href='../Y/entries.html' title='Multiple used in 277 places.'>entries</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/help_node.html' title='Multiple used in 10 places.'>help_node</a>);
<a id='L50' name='L50'></a>  50 <strong class='reserved'>void</strong> <a href='../S/lib--widget--menu.c.html#L924' title='Defined at 924 in lib/widget/menu.c.'>menu_set_name</a> (<a href='../D/menu_t.html' title='Multiple defined in 2 places.'>menu_t</a> * <a href='../Y/menu.html' title='Multiple used in 165 places.'>menu</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/name.html' title='Multiple used in 736 places.'>name</a>);
<a id='L51' name='L51'></a>  51 <strong class='reserved'>void</strong> <a href='../S/lib--widget--menu.c.html#L933' title='Defined at 933 in lib/widget/menu.c.'>destroy_menu</a> (<a href='../D/menu_t.html' title='Multiple defined in 2 places.'>menu_t</a> * <a href='../Y/menu.html' title='Multiple used in 165 places.'>menu</a>);
<a id='L52' name='L52'></a>  52 
<a id='L53' name='L53'></a>  53 <a href='../D/WMenuBar.html' title='Multiple defined in 2 places.'>WMenuBar</a> *<a href='../S/lib--widget--menu.c.html#L944' title='Defined at 944 in lib/widget/menu.c.'>menubar_new</a> (<a href='../Y/GList.html' title='Multiple used in 176 places.'>GList</a> * <a href='../Y/menu.html' title='Multiple used in 165 places.'>menu</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/visible.html' title='Multiple used in 12 places.'>visible</a>);
<a id='L54' name='L54'></a>  54 <strong class='reserved'>void</strong> <a href='../S/lib--widget--menu.c.html#L966' title='Defined at 966 in lib/widget/menu.c.'>menubar_set_menu</a> (<a href='../D/WMenuBar.html' title='Multiple defined in 2 places.'>WMenuBar</a> * <a href='../Y/menubar.html' title='Multiple used in 193 places.'>menubar</a>, <a href='../Y/GList.html' title='Multiple used in 176 places.'>GList</a> * <a href='../Y/menu.html' title='Multiple used in 165 places.'>menu</a>);
<a id='L55' name='L55'></a>  55 <strong class='reserved'>void</strong> <a href='../S/lib--widget--menu.c.html#L981' title='Defined at 981 in lib/widget/menu.c.'>menubar_add_menu</a> (<a href='../D/WMenuBar.html' title='Multiple defined in 2 places.'>WMenuBar</a> * <a href='../Y/menubar.html' title='Multiple used in 193 places.'>menubar</a>, <a href='../D/menu_t.html' title='Multiple defined in 2 places.'>menu_t</a> * <a href='../Y/menu.html' title='Multiple used in 165 places.'>menu</a>);
<a id='L56' name='L56'></a>  56 <strong class='reserved'>void</strong> <a href='../S/lib--widget--menu.c.html#L999' title='Defined at 999 in lib/widget/menu.c.'>menubar_arrange</a> (<a href='../D/WMenuBar.html' title='Multiple defined in 2 places.'>WMenuBar</a> * <a href='../Y/menubar.html' title='Multiple used in 193 places.'>menubar</a>);
<a id='L57' name='L57'></a>  57 
<a id='L58' name='L58'></a>  58 <a href='../D/WMenuBar.html' title='Multiple defined in 2 places.'>WMenuBar</a> *<a href='../S/lib--widget--menu.c.html#L1048' title='Defined at 1048 in lib/widget/menu.c.'>find_menubar</a> (<strong class='reserved'>const</strong> <a href='../D/WDialog.html' title='Multiple defined in 2 places.'>WDialog</a> * <a href='../Y/h.html' title='Multiple used in 470 places.'>h</a>);
<a id='L59' name='L59'></a>  59 
<a id='L60' name='L60'></a>  60 <strong class='reserved'>void</strong> <a href='../S/lib--widget--menu.c.html#L1063' title='Defined at 1063 in lib/widget/menu.c.'>menubar_activate</a> (<a href='../D/WMenuBar.html' title='Multiple defined in 2 places.'>WMenuBar</a> * <a href='../Y/menubar.html' title='Multiple used in 193 places.'>menubar</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/dropped.html' title='Multiple used in 3 places.'>dropped</a>, <strong class='reserved'>int</strong> <a href='../Y/which.html' title='Multiple used in 25 places.'>which</a>);
<a id='L61' name='L61'></a>  61 
<a id='L62' name='L62'></a>  62 <em class='comment'>/*** inline functions ****************************************************************************/</em>
<a id='L63' name='L63'></a>  63 
<a id='L64' name='L64'></a>  64 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <strong class='reserved'>void</strong>
<a id='L65' name='L65'></a>  65 <a href='../R/menubar_set_visible.html' title='Multiple referred from 2 places.'>menubar_set_visible</a> (<a href='../D/WMenuBar.html' title='Multiple defined in 2 places.'>WMenuBar</a> * <a href='../Y/menubar.html' title='Multiple used in 193 places.'>menubar</a>, <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../Y/visible.html' title='Multiple used in 12 places.'>visible</a>)
     <em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+65 lib/widget/menu.h'  /> */</em>
<a id='L66' name='L66'></a>  66 <em class='brace'>{</em>
<a id='L67' name='L67'></a>  67     <a href='../Y/menubar.html' title='Multiple used in 193 places.'>menubar</a>-&gt;<a href='../Y/is_visible.html' title='Multiple used in 4 places.'>is_visible</a> = <a href='../Y/visible.html' title='Multiple used in 12 places.'>visible</a>;
<a id='L68' name='L68'></a>  68 <em class='brace'>}</em>
<a id='L69' name='L69'></a>  69 
<a id='L70' name='L70'></a>  70 <em class='sharp'>#endif</em> <em class='comment'>/* MC__WIDGET_MENU_H */</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><a href='#L65'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><img class='icon' src='../icons/n_bottom.png' alt='[bottom]' /><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+70 lib/widget/menu.h'  /> */</em>
</body>
</html>
